Skip to content

chore: honor restic retention settings #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 27, 2025

Conversation

igolman
Copy link
Contributor

@igolman igolman commented Jun 10, 2025

Hi 👋 ,

I hope this finds you well.

There is a discrepancy between the documentation/examples for backup snapshots retention and the actual code.
According to README and stack-back.env.template one should use RESTIC_ prefix with the KEEP_* env variables for the retentions settings.
However in config.py it will fetch just theKEEP_* env variables, i.e. without the prefix. If one defines the backup retention using the RESTIC_ prefix, the retention will fall back to default values.

This PR takes both approaches into account, since someone may be already using the KEEP_* variant. Hence it is not introducing any break changes.

@lawndoc
Copy link
Owner

lawndoc commented Jun 27, 2025

The commit I added is fixing your merge conflicts with the version bump. I fixed the issue by just not caring about the version number in git.

@lawndoc
Copy link
Owner

lawndoc commented Jun 27, 2025

Thanks for noticing the discrepancy in the variable names. I appreciate the approach you took by not breaking it for either naming scheme.

@lawndoc lawndoc merged commit 72eed78 into lawndoc:main Jun 27, 2025
3 checks passed
@lawndoc
Copy link
Owner

lawndoc commented Jun 27, 2025

Thanks for the contribution @igolman! Nice work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants